import request from '@/utils/myrequest'
// 获取用户
export function getUserList(pageNum=1) {
    return request({
      url: '/admin/employee/list',
      params:{
        pageNum:pageNum,
        pageSize:8
      }
    })
  }

  // 添加用户

  export function addUser(data){
    return request({
      url:"/admin/employee/",
      method:"post",
      data
    })
  }


  // 删除员工

  export function delUser(num){
    return request({
      url:"/admin/employee/"+num,
      method:"delete"
    })
  }


  // 查询用户
export function getSearchUserList(formInline,pageNum=1) {
  return request({
    url: '/admin/employee/list',
    params:{
      pageNum:pageNum,
      pageSize:8,
      ...formInline
    }
  })
}



